// layout组件相关配置仓库
import { defineStore } from 'pinia'

let useLayoutSettingStore = defineStore('SettingStore', {
  state: () => {
    return {
      fold: false, // 用于控制菜单折叠还是展开控制
      refresh: false, // 控制刷新效果
    }
  },
  actions: {
    foldChange() {
      // 图标进行切换
      this.fold = !this.fold
    },
    refreshUpdate() {
      // 刷新按钮
      this.refresh = !this.refresh
    },
  },
})

export default useLayoutSettingStore
